<?php
/**
 * DESC:
 * 作者:晨光
 * EMAIL:461718846@qq.com
 * DATE:2020-06-03
 */

namespace app\wechat\controller;


use app\common\controller\WechatUserBase;
use app\common\model\Carousel;

class Index extends WechatUserBase
{
    /**
     * 获取轮播图
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public function getCarousel(){
        $cate_id = input('cate_id');
        $data = Carousel::where('cate_id','=',$cate_id)->select();
        $this->result($data);
    }
    public function search_result(){
        $keywords = input('keywords');
        $this->assign('keywords',$keywords);
        return view();
    }
}
